home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / src / Tools / glimpse-2.1 / libtemplate / Makefile.solaris < prev    next >
Makefile  |  1995-05-16  |  3KB  |  101 lines

  1. #
  2. #  Makefile for the common source directory
  3. #
  4. #  $Id: Makefile.in,v 1.10 1994/09/30 22:11:28 hardy Exp $
  5. #
  6. SUBDIRS        = util template #md5 util url template
  7. DEBUG_TOP    = #-O #-g #-DDEBUG
  8.  
  9. prefix = /usr/local/harvest
  10. INSTALL_BINDIR    = $(prefix)/bin
  11. INSTALL_LIBDIR    = $(prefix)/lib
  12. INSTALL_MANDIR     = $(prefix)/man
  13.  
  14. CC        = gcc
  15. INSTALL        = cp #install -c
  16. INSTALL_BIN     = ${INSTALL}
  17. INSTALL_FILE     = ${INSTALL} #-m 644
  18. RANLIB        = true
  19. LN_S        = ln -s
  20. XTRA_LIBS    =  -lresolv -lm
  21.  
  22.  
  23. # old variables for backward compatability
  24. INSTALLDIR     = $(INSTALL_BINDIR)
  25. INSTALL_SCRIPT     = $(INSTALL_BIN)
  26.  
  27. INSTALL_DIRS    = $(prefix) $(INSTALL_BINDIR) $(INSTALL_LIBDIR) \
  28.           $(INSTALL_MANDIR)
  29.  
  30. all:    #all-gdbm
  31.     @for dir in $(SUBDIRS); do \
  32.         echo Making $@ in $$dir; \
  33.         (cd $$dir; $(MAKE) $(MFLAGS) \
  34.             INSTALL_BINDIR="$(INSTALL_BINDIR)" \
  35.             INSTALL_LIBDIR="$(INSTALL_LIBDIR)" \
  36.             INSTALL_MANDIR="$(INSTALL_MANDIR)" \
  37.             RANLIB="$(RANLIB)" \
  38.             DEBUG_TOP="$(DEBUG_TOP)" \
  39.             INSTALL_BIN="$(INSTALL_BIN)" \
  40.             INSTALL_FILE="$(INSTALL_FILE)" \
  41.             INSTALLDIR="$(INSTALL_BINDIR)" \
  42.             INSTALL_SCRIPT="$(INSTALL_SCRIPT)" -f Makefile.solaris $@); \
  43.     done
  44.  
  45. install:
  46.     @for dir in $(SUBDIRS); do \
  47.         echo Making $@ in $$dir; \
  48.         (cd $$dir; $(MAKE) $(MFLAGS) \
  49.             INSTALL_BINDIR="$(INSTALL_BINDIR)" \
  50.             INSTALL_LIBDIR="$(INSTALL_LIBDIR)" \
  51.             INSTALL_MANDIR="$(INSTALL_MANDIR)" \
  52.             RANLIB="$(RANLIB)" \
  53.             INSTALL_BIN="$(INSTALL_BIN)" \
  54.             INSTALL_FILE="$(INSTALL_FILE)" \
  55.             INSTALLDIR="$(INSTALL_BINDIR)" \
  56.             INSTALL_SCRIPT="$(INSTALL_SCRIPT)" -f Makefile.solaris $@); \
  57.     done
  58.  
  59. clean:
  60.     -@for dir in gdbm lib $(SUBDIRS); do \
  61.         echo Making $@ in $$dir; \
  62.         (cd $$dir; $(MAKE) $(MFLAGS) \
  63.             INSTALL_BINDIR="$(INSTALL_BINDIR)" \
  64.             INSTALL_LIBDIR="$(INSTALL_LIBDIR)" \
  65.             INSTALL_MANDIR="$(INSTALL_MANDIR)" \
  66.             RANLIB="$(RANLIB)" \
  67.             INSTALL_BIN="$(INSTALL_BIN)" \
  68.             INSTALL_FILE="$(INSTALL_FILE)" \
  69.             INSTALLDIR="$(INSTALL_BINDIR)" \
  70.             INSTALL_SCRIPT="$(INSTALL_SCRIPT)" $@); \
  71.     done
  72.  
  73. #realclean:    clean
  74. #    -rm -f Makefile include/autoconf.h include/paths.h config.status *~ core
  75. #    -@for dir in gdbm lib $(SUBDIRS); do \
  76. #        echo Making $@ in $$dir; \
  77. #        (cd $$dir; $(MAKE) $(MFLAGS) \
  78. #            INSTALL_BINDIR="$(INSTALL_BINDIR)" \
  79. #            INSTALL_LIBDIR="$(INSTALL_LIBDIR)" \
  80. #            INSTALL_MANDIR="$(INSTALL_MANDIR)" \
  81. #            RANLIB="$(RANLIB)" \
  82. #            INSTALL_BIN="$(INSTALL_BIN)" \
  83. #            INSTALL_FILE="$(INSTALL_FILE)" \
  84. #            INSTALLDIR="$(INSTALL_BINDIR)" \
  85. #            INSTALL_SCRIPT="$(INSTALL_SCRIPT)" $@); \
  86. #    done
  87.  
  88. #
  89. #  Compiles and installs gdbm from scratch.  Works with gdbm-1.7.3
  90. #
  91. all-gdbm:
  92.     @echo Making all in gdbm
  93.     @rm -f gdbm/autoconf.h
  94.     @$(LN_S) ../include/autoconf.h gdbm/autoconf.h
  95.     @(cd gdbm; \
  96.         $(MAKE) $(MFLAGS) -f Makefile.solaris gdbm.h libgdbm.a; \
  97.         $(INSTALL_FILE) gdbm.h ../include/gdbm.h; \
  98.         $(INSTALL_FILE) libgdbm.a ../lib/libgdbm.a; \
  99.         $(RANLIB) ../lib/libgdbm.a \
  100.     )
  101.